<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog modal">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title">
					密码修改
				</h4>
			</div>
			<div class="modal-body">
                    <form class="form-horizontal" role="form" id="form2">
                        <div class="form-group">
                            <label for="user" class="col-sm-3 control-label">用户名</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" id="user" name="user" readonly="readonly"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="host" class="col-sm-3 control-label">授权主机</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="host" id="host" readonly="readonly"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-3 control-label">密码</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="password" id="password"/>

                            </div>
                        </div>

                    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
				<button type="button" class="btn btn-primary" onclick="confirmMod()">
					提交更改
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title">
					新增授权
				</h4>
			</div>
			<div class="modal-body">
                    <form class="form-horizontal" role="form" id="form3">
                        <div class="form-group">
                            <label for="user" class="col-sm-3 control-label">用户名</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" id="user1" name="user"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="host" class="col-sm-3 control-label">授权主机</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="host" id="host1"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="dbname" class="col-sm-3 control-label">授权数据库</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" name="dbname" id="dbname"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="is_first" class="col-sm-3 control-label">首次授权</label>
                            <div class="col-sm-7" id="myswitch">
                                 <input type="checkbox" name="is_first" id="is_first" data-on-text="YES" data-off-text="NO" onclick="check_first(this)"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="db_type" class="col-sm-3 control-label">权限类别</label>
                            <div class="col-sm-7">
                                 <input type="radio" name="db_type" value="prod"/>正式
                                 <input type="radio" name="db_type" value="dev"/>测试
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-3 control-label">密码</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="password" id="password1" readonly="readonly"/>

                            </div>
                            <button  class="btn btn-primary btn-sm" onclick="generateMixed(16)">生成密码</button>
                        </div>

                    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
				<button type="button" class="btn btn-primary" onclick="confirmAdd()">
					添加
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title">
					用户授权列表
				</h4>
			</div>
			<div class="modal-body">
                <table class="table table-striped">
                  <thead>
                    <tr>
                      <th>用户名</th>
                      <th>授权主机</th>
                      <th>授权数据库</th>
                      <th>操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr id="dynamicCreate1" style="display: none">
                      <td></td>
                      <td></td>
                      <td></td>
                      <td></td>
                    </tr>

                  </tbody>
                </table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog modal">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title">
					新增数据库
				</h4>
			</div>
			<div class="modal-body">
                    <form class="form-horizontal" role="form" id="form4">
                        <div class="form-group">
                            <label for="database" class="col-sm-3 control-label">数据库</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control" id="database" name="database"/>
                            </div>
                        </div>

                    </form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
				<button type="button" class="btn btn-primary" onclick="confirmDat()">
					新增
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>

<div class="modal fade" id="myModal5" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					数据库列表
				</h4>
			</div>
			<div class="modal-body">
                <table class="table table-striped">
                  <thead>
                    <tr>
                      <th>序号</th>
                      <th>数据库</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr id="dynamicCreate2" style="display: none">
                      <td></td>
                      <td></td>
                    </tr>

                  </tbody>
                </table>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭
				</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>
<style>
.modal-backdrop.in {
    opacity: 0.4;
}
</style>